package A05_MyTressSet;

import java.util.TreeSet;

public class MyTreeSetDemo2 {
    public static void main(String[] args) {
        Student s1 = new Student("cgc",19);
        Student s2 = new Student("has",20);
        Student s3 = new Student("kzy",21);

        TreeSet<Student> ts = new TreeSet<>();

        ts.add(s1);
        ts.add(s2);
        System.out.println(ts);
    }
}
